package Models;

import android.annotation.SuppressLint;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class BrewView {
    @SuppressLint("SimpleDateFormat")
	private final DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
    
    private int brewID;
    private int state;
    private Date brewDate;
    private POSBeerView beer;
    private double volumeLeft;
    private int ganttColor;
    private Date ganttStart;
    private Date ganttSecond;
    private Date ganttCond;
    private Date ganttStop;
    private int ganttPrimaryID;
    private int ganttSecondaryID;
    private int ganttConditioningID;
    private String ganttFGICSV;
    private boolean ganttFilter;
    private boolean ganttHarvest;
    private Date ganttHarvestDate;
    private boolean ganttFine;
    private int origBrew;
    private Date conditioningDate;
    private Date packagingDate;
    private Date secondaryFermDate;
    private String secondaryFermNotes;
    private int primaryVesselID;
    private int secondaryVesselID;
    private int conditioningVesselID;
    private int brewNoteID1;
    private int brewNoteID2;
    private int brewNoteID3;
    private int brewNoteID4;
    private int brewNoteID5;
    private int brewNoteID6;
    private int version;
    
    public int getBrewID() {
		return brewID;
	}
	public void setBrewID(int brewID) {
		this.brewID = brewID;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public Date getBrewDate() {
		return brewDate;
	}
	public void setBrewDate(Date brewDate) {
		this.brewDate = brewDate;
	}
	public POSBeerView getBeer() {
		return beer;
	}
	public void setBeer(POSBeerView beer) {
		this.beer = beer;
	}
	public double getVolumeLeft() {
		return volumeLeft;
	}
	public void setVolumeLeft(double volumeLeft) {
		this.volumeLeft = volumeLeft;
	}
	public int getGanttColor() {
		return ganttColor;
	}
	public void setGanttColor(int ganttColor) {
		this.ganttColor = ganttColor;
	}
	public Date getGanttStart() {
		return ganttStart;
	}
	public void setGanttStart(Date ganttStart) {
		this.ganttStart = ganttStart;
	}
	public Date getGanttSecond() {
		return ganttSecond;
	}
	public void setGanttSecond(Date ganttSecond) {
		this.ganttSecond = ganttSecond;
	}
	public Date getGanttCond() {
		return ganttCond;
	}
	public void setGanttCond(Date ganttCond) {
		this.ganttCond = ganttCond;
	}
	public Date getGanttStop() {
		return ganttStop;
	}
	public void setGanttStop(Date ganttStop) {
		this.ganttStop = ganttStop;
	}
	public int getGanttPrimaryID() {
		return ganttPrimaryID;
	}
	public void setGanttPrimaryID(int ganttPrimaryID) {
		this.ganttPrimaryID = ganttPrimaryID;
	}
	public int getGanttSecondaryID() {
		return ganttSecondaryID;
	}
	public void setGanttSecondaryID(int ganttSecondaryID) {
		this.ganttSecondaryID = ganttSecondaryID;
	}
	public int getGanttConditioningID() {
		return ganttConditioningID;
	}
	public void setGanttConditioningID(int ganttConditioningID) {
		this.ganttConditioningID = ganttConditioningID;
	}
	public String getGanttFGICSV() {
		return ganttFGICSV;
	}
	public void setGanttFGICSV(String ganttFGICSV) {
		this.ganttFGICSV = ganttFGICSV;
	}
	public boolean isGanttFilter() {
		return ganttFilter;
	}
	public void setGanttFilter(boolean ganttFilter) {
		this.ganttFilter = ganttFilter;
	}
	public boolean isGanttHarvest() {
		return ganttHarvest;
	}
	public void setGanttHarvest(boolean ganttHarvest) {
		this.ganttHarvest = ganttHarvest;
	}
	public Date getGanttHarvestDate() {
		return ganttHarvestDate;
	}
	public void setGanttHarvestDate(Date ganttHarvestDate) {
		this.ganttHarvestDate = ganttHarvestDate;
	}
	public boolean isGanttFine() {
		return ganttFine;
	}
	public void setGanttFine(boolean ganttFine) {
		this.ganttFine = ganttFine;
	}
	public int getOrigBrew() {
		return origBrew;
	}
	public void setOrigBrew(int origBrew) {
		this.origBrew = origBrew;
	}
	public Date getConditioningDate() {
		return conditioningDate;
	}
	public void setConditioningDate(Date conditioningDate) {
		this.conditioningDate = conditioningDate;
	}
	public Date getPackagingDate() {
		return packagingDate;
	}
	public void setPackagingDate(Date packagingDate) {
		this.packagingDate = packagingDate;
	}
	public Date getSecondaryFermDate() {
		return secondaryFermDate;
	}
	public void setSecondaryFermDate(Date secondaryFermDate) {
		this.secondaryFermDate = secondaryFermDate;
	}
	public String getSecondaryFermNotes() {
		return secondaryFermNotes;
	}
	public void setSecondaryFermNotes(String secondaryFermNotes) {
		this.secondaryFermNotes = secondaryFermNotes;
	}
	public int getPrimaryVesselID() {
		return primaryVesselID;
	}
	public void setPrimaryVesselID(int primaryVesselID) {
		this.primaryVesselID = primaryVesselID;
	}
	public int getSecondaryVesselID() {
		return secondaryVesselID;
	}
	public void setSecondaryVesselID(int secondaryVesselID) {
		this.secondaryVesselID = secondaryVesselID;
	}
	public int getConditioningVesselID() {
		return conditioningVesselID;
	}
	public void setConditioningVesselID(int conditioningVesselID) {
		this.conditioningVesselID = conditioningVesselID;
	}
	public int getBrewNoteID1() {
		return brewNoteID1;
	}
	public void setBrewNoteID1(int brewNoteID1) {
		this.brewNoteID1 = brewNoteID1;
	}
	public int getBrewNoteID2() {
		return brewNoteID2;
	}
	public void setBrewNoteID2(int brewNoteID2) {
		this.brewNoteID2 = brewNoteID2;
	}
	public int getBrewNoteID3() {
		return brewNoteID3;
	}
	public void setBrewNoteID3(int brewNoteID3) {
		this.brewNoteID3 = brewNoteID3;
	}
	public int getBrewNoteID4() {
		return brewNoteID4;
	}
	public void setBrewNoteID4(int brewNoteID4) {
		this.brewNoteID4 = brewNoteID4;
	}
	public int getBrewNoteID5() {
		return brewNoteID5;
	}
	public void setBrewNoteID5(int brewNoteID5) {
		this.brewNoteID5 = brewNoteID5;
	}
	public int getBrewNoteID6() {
		return brewNoteID6;
	}
	public void setBrewNoteID6(int brewNoteID6) {
		this.brewNoteID6 = brewNoteID6;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public DateFormat getDateFormat() {
		return dateFormat;
	}
	
	public String getDisplayString(){
        return Integer.toString(this.brewID)
                + " - " + dateFormat.format(this.brewDate)
                + " - " + this.beer.getName();
    }
    public String getSmallDisplay(){
        return Integer.toString(this.brewID)
                + " - " + this.beer.getName();
    }
}
